<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心 - 人才职业生涯规划平台</title>
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <link rel="stylesheet" href="../css/profile.css">
    <style>
        /* --- 基础变量覆盖 (可选，如果 style.css 的不够用) --- */
        :root {
            --profile-bg-color: #f8f9fa; /* 更柔和的页面背景 */
            --profile-card-bg: #ffffff;
            --profile-header-bg: linear-gradient(to bottom, #5c6bc0, #3f51b5); /* 渐变头部背景 */
            --profile-text-primary: #212529;
            --profile-text-secondary: #6c757d;
            --profile-icon-color: #495057;
            --profile-border-color: #dee2e6; 
            --profile-soft-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
            --profile-stronger-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
            --profile-radius-lg: 16px;
            --profile-radius-md: 12px;
            --profile-radius-sm: 8px;
        }

        body {
            background-color: var(--profile-bg-color);
        }

        .app-container.profile-page {
             max-width: var(--content-max-width, 450px); /* 保持宽度限制 */
             background-color: var(--profile-bg-color);
             box-shadow: none; /* 移除外层阴影，让模块阴影更突出 */
        }

        /* --- 头部优化 --- */
        .profile-header-new {
            background: var(--profile-header-bg);
            color: white;
            padding: 25px 20px 20px; 
            border-bottom-left-radius: var(--profile-radius-lg);
            border-bottom-right-radius: var(--profile-radius-lg);
            margin-bottom: -10px; /* 让数据概览部分稍微上移重叠 */
            position: relative;
            z-index: 1;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        .user-info-top {
            align-items: flex-start; 
        }
        .user-details-main .user-name {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 6px;
        }
        .user-details-main .user-status {
            font-size: 13px;
            opacity: 0.9;
            background-color: rgba(255, 255, 255, 0.15);
            padding: 4px 10px;
            border-radius: var(--profile-radius-sm);
            display: flex;
            align-items: center;
            cursor: pointer;
            margin-bottom: 6px;
            transition: all 0.2s ease;
            color: rgba(255, 255, 255, 0.9);
            align-self: flex-start;
            max-width: fit-content;
        }
        .user-details-main .user-status:hover {
            background-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }
        .user-details-main .user-status i {
            margin-left: 5px;
            font-size: 12px;
        }
        .user-details-main .user-school {
            font-size: 14px;
            opacity: 0.8;
        }
        .avatar-container-new .avatar-new {
            width: 65px;
            height: 65px;
            border: 3px solid rgba(255, 255, 255, 0.5);
        }
        .edit-avatar-new {
            background-color: rgba(0, 0, 0, 0.3);
            color: white;
            width: 24px;
            height: 24px;
            font-size: 14px;
            bottom: 5px;
            right: 0px;
        }
        .profile-actions-icons {
            position: absolute;
            top: 15px;
            right: 15px;
        }
        .action-icon-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            font-size: 18px;
            margin-left: 8px;
        }
        .action-icon-btn:hover {
             background: rgba(255, 255, 255, 0.2);
        }

        /* --- 数据概览优化 --- */
        .data-overview-new {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            background-color: var(--profile-card-bg);
            padding: 15px;
            margin: 0 15px 15px; /* 调整外边距 */
            border-radius: var(--profile-radius-md);
            box-shadow: var(--profile-soft-shadow);
            position: relative;
            z-index: 2;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        .data-item {
            text-align: center;
            padding: 10px 5px;
            border-radius: var(--profile-radius-sm);
            transition: background-color 0.3s ease;
        }
        .data-item:hover {
            background-color: #f8f9fa;
        }
        .data-item h3 {
            font-size: 20px;
            font-weight: 600;
            color: var(--profile-text-primary);
            margin-bottom: 3px;
        }
        .data-item p {
            font-size: 13px;
            color: var(--profile-text-secondary);
        }

        /* --- 模块通用优化 --- */
        .main-content-profile {
             padding: 15px; /* 恢复或设置主内容区域 padding */
        }
        .module {
            background-color: var(--profile-card-bg);
            border-radius: var(--profile-radius-md);
            box-shadow: var(--profile-soft-shadow);
            margin-bottom: 15px;
            overflow: hidden;
            border: none; /* 移除可能存在的边框 */
            opacity: 0;
            transform: translateY(15px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        .module-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--profile-text-primary);
            padding: 18px 15px 12px; /* 微调标题padding */
            margin: 0;
            border-bottom: 1px solid #f1f3f5; /* 更柔和的分割线 */
        }

        /* --- 核心功能区优化 --- */
        /* 样式已合并到 .service-grid 和 .service-item，移除独立样式 */
        /* .core-functions { ... } */
        /* .core-functions .module-grid { ... } */
        /* .core-functions .grid-item { ... } */
        /* .core-functions .grid-icon { ... } */
        /* .core-functions .grid-item span { ... } */
        /* 移除旧的图标颜色设置 */
        /* .core-functions .resume-icon { ... } */
        /* ... etc ... */

        /* --- 服务/帮助列表优化 (修改为宫格布局) --- */
        .service-grid {
             gap: 15px 10px; /* 垂直间距稍大，水平间距稍小 */
             padding: 20px 15px; /* 调整内边距 */
             display: grid;
             grid-template-columns: repeat(3, 1fr); /* 修改为3列布局 */
             justify-content: center; /* 水平居中 */
        }
        .service-item {
             padding: 16px 5px; /* 调整服务项内边距 */
             text-decoration: none;
             color: var(--profile-text-primary);
             transition: background-color 0.3s ease;
             border-bottom: none; /* 确保移除边框 */
             display: flex; /* 改回 flex */
             flex-direction: column; /* 改为垂直排列 */
             align-items: center; /* 水平居中 */
             text-align: center; /* 文字居中 */
             border-radius: var(--profile-radius-sm);
        }
        .service-item:not(:last-child) {
             border-bottom: none; /* 确保移除边框 */
        }
        .service-item:hover {
            background-color: #f8f9fa;
        }

        /* 新增：图标包裹样式 */
        .service-icon-wrapper {
            width: 64px; /* 增大图标容器尺寸 */
            height: 64px;
            border-radius: 18px; /* 更大的圆角 */
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px; /* 增加与文字间距 */
            background-color: #f0f0f0; /* 默认背景色 */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* 添加轻微阴影 */
            transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; /* 添加过渡效果 */
        }
        .service-item:hover .service-icon-wrapper {
             transform: scale(1.08); /* 悬停时图标放大一点 */
             box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* 悬停时增加阴影 */
        }

        /* 为不同服务图标添加更柔和/现代的背景色 */
        .resume-bg { background-color: #d1f7c4; } 
        .intention-bg { background-color: #fff0c2; }
        .history-bg { background-color: #d6eafd; } 
        .followed-bg { background-color: #f1dff7; }
        .assessment-bg { background-color: #cff6fc; } 
        .learning-bg { background-color: #fff9c4; }
        .consulting-bg { background-color: #fddde6; }
        .registration-bg { background-color: #d7f7df; }
        .feedback-bg { background-color: #ffdee0; }
        .faq-bg { background-color: #d6eafd; }
        .contact-bg { background-color: #e7e0fc; }

        .service-item .list-icon {
             font-size: 30px; /* 增大图标大小 */
             color: inherit; /* 保持继承 */
        }
        /* 调整特定图标颜色以适应新背景 */
        .resume-bg .list-icon { color: #388e3c; }
        .intention-bg .list-icon { color: #ffa000; }
        .history-bg .list-icon { color: #1976d2; }
        .followed-bg .list-icon { color: #8e24aa; }
        .assessment-bg .list-icon { color: #00796b; }
        .learning-bg .list-icon { color: #fbc02d; }
        .consulting-bg .list-icon { color: #d81b60; }
        .registration-bg .list-icon { color: #43a047; }
        .feedback-bg .list-icon { color: #c62828; }
        .faq-bg .list-icon { color: #1976d2; } /* 与 history 一致 */
        .contact-bg .list-icon { color: #5e35b1; }

        .service-item span {
             font-size: 14px; /* 增大字体大小 */
             color: #495057; /* 稍微加深文字颜色 */
             line-height: 1.3; /* 调整行高 */
             font-weight: 500; /* 稍微加粗 */
             margin-top: 4px; /* 增加顶部间距 */
        }
        /* 移除箭头样式 */
        /* .service-item .arrow-icon { ... } */

        /* --- 帮助与反馈列表优化 --- */
        /* 样式已合并到 .service-grid 和 .service-item，移除独立样式 */
        /* .help-section .service-list { ... } */
        /* .help-section .service-item { ... } */
        /* ... (移除其他 .help-section 相关样式) ... */

        /* --- 经纪人板块样式 --- */
        .agent-section {
            margin-top: 20px;
        }
        
        .agent-list {
            padding: 15px;
        }
        
        .agent-card {
            background-color: #fff;
            border-radius: var(--profile-radius-md);
            padding: 15px;
            margin-bottom: 15px;
            display: flex;
            position: relative;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            border: 1px solid #f0f0f0;
            transition: all 0.2s ease;
        }
        
        .agent-card:hover {
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            transform: translateY(-2px);
        }
        
        /* 新卡片样式 */
        .agent-card.new-card {
            background: linear-gradient(to right, #fff, #f6f9ff);
            border-left: 3px solid #5c7cfa;
        }
        
        .agent-avatar-container {
            position: relative;
            margin-right: 12px;
            flex-shrink: 0;
        }
        
        .agent-avatar {
            width: 65px;
            height: 65px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #f0f0f0;
        }
        
        .agent-status {
            position: absolute;
            bottom: 3px;
            right: 3px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid #fff;
        }
        
        .agent-status.online {
            background-color: #4caf50;
        }
        
        .agent-status.offline {
            background-color: #9e9e9e;
        }
        
        .agent-info {
            flex-grow: 1;
            min-width: 0; /* 确保文本可以省略 */
        }
        
        .agent-name-wrapper {
            display: flex;
            align-items: center;
            margin-bottom: 4px;
            flex-wrap: wrap;
        }
        
        .agent-name {
            font-size: 16px;
            font-weight: 600;
            margin: 0;
            margin-right: 6px;
        }
        
        /* 匹配度样式 */
        .match-rate {
            margin-left: auto;
            background-color: #f0f8ff;
            color: #4a6fee;
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 500;
        }
        
        .agent-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #fff;
        }
        
        .agent-badge.verified i {
            color: #4a6fee;
        }
        
        .agent-badge.premium i {
            color: #f9a825;
        }
        
        /* 新增标记样式 */
        .agent-badge.new i {
            color: #e91e63;
        }
        
        .agent-title {
            font-size: 13px;
            color: #666;
            margin: 0 0 4px;
        }
        
        .agent-desc {
            font-size: 12px;
            color: #888;
            margin: 0 0 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* 新增统计信息样式 */
        .agent-stats {
            display: flex;
            margin-bottom: 8px;
            gap: 15px;
        }
        
        .agent-stat-item {
            display: flex;
            align-items: center;
            font-size: 11px;
            color: #777;
        }
        
        .agent-stat-item i {
            font-size: 12px;
            margin-right: 4px;
            color: #888;
        }
        
        .agent-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        
        .agent-tag {
            background-color: #f5f5f5;
            color: #666;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
        }
        
        /* 特殊标签样式 */
        .agent-tag.hot-tag {
            background-color: #fff0f0;
            color: #ff4d4f;
        }
        
        .agent-tag.premium-tag {
            background-color: #fffbe6;
            color: #fa8c16;
        }
        
        .agent-tag.new-tag {
            background-color: #f6f0ff;
            color: #722ed1;
        }
        
        .agent-actions {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-end;
            margin-left: 10px;
        }
        
        /* 新增状态显示 */
        .action-status {
            font-size: 11px;
            color: #52c41a;
            margin-bottom: 8px;
            white-space: nowrap;
            font-weight: 500;
        }
        
        .action-status.busy {
            color: #faad14;
        }
        
        .agent-action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            background-color: #f5f8ff;
            color: #4a6fee;
            border: none;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .agent-action-btn.message-btn i {
            font-size: 18px;
            margin-bottom: 3px;
        }
        
        .agent-action-btn.message-btn:hover {
            background-color: #4a6fee;
            color: #fff;
        }
        
        .view-all-agents {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px;
            color: #4a6fee;
            text-decoration: none;
            font-size: 14px;
            border-top: 1px solid #f0f0f0;
            margin: 0 -15px -15px;
        }
        
        .view-all-agents i {
            margin-left: 5px;
            transition: transform 0.2s ease;
        }
        
        .view-all-agents:hover i {
            transform: translateX(3px);
        }

        /* --- 横向布局优化调整 --- */
        @media (min-width: 600px) {
            .main-content-profile {
                padding-left: 20px;
                padding-right: 20px;
            }
            /* 移除 .side-by-side-modules 相关样式 */
            /* .side-by-side-modules { ... } */
            /* .side-by-side-modules > .module { ... } */
            
             /* 可以让数据概览也参与横向布局 */
            .data-overview-new {
                 grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
            }
            /* 移除 .core-functions 相关调整 */
            /* .core-functions .module-grid { ... } */
            
            /* 可以调整服务宫格在宽屏下的列数 */
            .service-grid {
                grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); /* 响应式列数 */
            }
        }
    </style>
    <style>
        /* --- 新增：模态框样式 --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000; /* 确保在最上层 */
            opacity: 0;
            transition: opacity 0.3s ease;
            backdrop-filter: blur(3px); /* 添加背景模糊效果 */
        }
        .modal-overlay.visible {
            opacity: 1;
        }

        .modal-content {
            background-color: white;
            padding: 20px 25px;
            border-radius: var(--profile-radius-md, 12px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            width: 90%;
            max-width: 380px; /* 限制最大宽度 */
            transform: scale(0.95) translateY(20px);
            transition: all 0.3s ease;
        }
        .modal-overlay.visible .modal-content {
            transform: scale(1) translateY(0);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        .modal-header h2 {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
        }
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            font-weight: bold;
            color: #aaa;
            cursor: pointer;
            padding: 0;
            line-height: 1;
            transition: all 0.2s ease;
        }
        .close-btn:hover {
             color: #666;
             transform: scale(1.1);
        }

        .modal-body p {
            font-size: 14px;
            color: var(--profile-text-secondary, #6c757d);
            margin-bottom: 15px;
        }

        .status-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 20px;
        }
        .status-option {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            border: 1px solid var(--profile-border-color, #dee2e6);
            border-radius: var(--profile-radius-sm, 8px);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 15px;
            position: relative;
            overflow: hidden;
        }
        .status-option i {
            margin-right: 10px;
            font-size: 18px;
            color: var(--profile-icon-color, #495057);
            transition: color 0.2s ease;
        }
        .status-option:hover {
             background-color: #f8f9fa;
             border-color: #ced4da;
             transform: translateY(-2px);
             box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }
        .status-option.selected {
            background-color: #e9f3ff; /* 选中背景色 */
            border-color: var(--primary-color, #3f51b5); /* 主色调边框 */
            color: var(--primary-color, #3f51b5);
            font-weight: 500;
            box-shadow: 0 3px 10px rgba(63, 81, 181, 0.15);
        }
        .status-option.selected::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            background-color: var(--primary-color, #3f51b5);
            border-radius: 50%;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E");
            background-size: 12px;
            background-repeat: no-repeat;
            background-position: center;
            opacity: 0;
            transform: translate(10px, -50%) scale(0.5);
            transition: all 0.3s ease;
        }
        .status-option.selected::after {
            opacity: 1;
            transform: translateY(-50%) scale(1);
        }
        .status-option.selected i {
            color: var(--primary-color, #3f51b5);
        }

        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 15px;
        }
        /* 简单按钮样式，可复用或自定义 */
        .btn {
            padding: 10px 20px;
            border-radius: var(--profile-radius-sm, 8px);
            font-size: 14px;
            cursor: pointer;
            border: 1px solid transparent;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        .btn-primary {
            background-color: var(--primary-color, #3f51b5);
            color: white;
            border-color: var(--primary-color, #3f51b5);
            box-shadow: 0 3px 8px rgba(63, 81, 181, 0.2);
        }
        .btn-primary:hover {
            background-color: #303f9f; /* 深一点的蓝色 */
            box-shadow: 0 5px 12px rgba(63, 81, 181, 0.3);
            transform: translateY(-2px);
        }
        .btn-secondary {
            background-color: #f8f9fa;
            color: var(--profile-text-secondary, #6c757d);
            border-color: #dee2e6;
        }
        .btn-secondary:hover {
            background-color: #e9ecef;
            transform: translateY(-2px);
        }
    </style>
    <!-- 新增: 底部导航栏 App 规格样式 -->
    <style>
        /* 按照App规格调整底部导航栏 */
        .tab-bar {
            /* --- 尺寸与定位 --- */
            height: 50px; 
            position: fixed;
            bottom: 0;
            left: 50%; /* 用于居中 */
            transform: translateX(-50%); /* 用于居中 */
            width: 100%; /* 先设置为100% */
            max-width: 450px; /* **关键：限制最大宽度** */
            z-index: 1000;

            /* --- 外观 --- */
            display: flex;
            justify-content: space-around;
            align-items: center;
            background-color: #fff;
            border-top: 1px solid #eee;
            box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
            opacity: 1;
            
            /* --- 其他 --- */
            transition: all 0.3s ease;
            padding-bottom: env(safe-area-inset-bottom, 0); 
        }
        
        /* 滚动时隐藏底部导航栏 */
        .tab-bar-hidden {
            transform: translateX(-50%) translateY(100%); /* 向下移出视野 */
            opacity: 0;
            pointer-events: none; /* 防止隐藏时仍能点击 */
        }
        
        .tab-bar .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            height: 100%;
            color: #8e8e93;
            font-size: 10px; /* 更小的字体 */
            position: relative;
            text-decoration: none;
            padding: 0; /* 移除内边距 */
        }
        
        .tab-bar .tab-item.active {
            color: #4a6fee;
            font-weight: normal; /* 移除加粗 */
        }
        
        .tab-bar .tab-item i {
            font-size: 20px; /* 减小图标尺寸 */
            margin-bottom: 2px; /* 减小间距 */
            transition: all 0.3s ease;
        }
        
        .tab-bar .tab-item span {
            font-size: 10px; /* 确保字体尺寸统一 */
            line-height: 1;
            transition: all 0.3s ease;
        }
        
        /* 为活跃项添加底部指示条 */
        .tab-bar .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 16px; /* 更短的指示条 */
            height: 2px; /* 更细的指示条 */
            border-radius: 1px;
            background-color: #4a6fee;
        }
        
        /* 确保内容不被底部导航栏遮挡 */
        .profile-page {
            padding-bottom: calc(50px + env(safe-area-inset-bottom, 0)) !important; /* 确保padding生效 */
        }
        
        /* 处理不同设备的安全区适配 (确保高度计算正确) */
        @supports (padding-bottom: constant(safe-area-inset-bottom)) {
            .tab-bar {
                padding-bottom: constant(safe-area-inset-bottom);
                /* 注意：高度应保持内容区域高度，padding-bottom处理安全区 */
                /* height: calc(50px + constant(safe-area-inset-bottom)); */ 
            }
            .profile-page {
                 padding-bottom: calc(50px + constant(safe-area-inset-bottom)) !important;
            }
        }
        @supports (padding-bottom: env(safe-area-inset-bottom)) {
            .tab-bar {
                padding-bottom: env(safe-area-inset-bottom);
                 /* 注意：高度应保持内容区域高度，padding-bottom处理安全区 */
                /* height: calc(50px + env(safe-area-inset-bottom)); */
            }
             .profile-page {
                 padding-bottom: calc(50px + env(safe-area-inset-bottom)) !important;
            }
        }
        
        /* 暗黑模式支持 */
        @media (prefers-color-scheme: dark) {
            .tab-bar {
                background-color: #1a1a1a;
                border-top-color: #2c2c2c;
                box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.15);
            }
            
            .tab-bar .tab-item {
                color: #a0a0a0;
            }
            
            .tab-bar .tab-item.active {
                color: #5c7cfa;
            }
            
            .tab-bar .tab-item.active::after {
                background-color: #5c7cfa;
            }
        }
    </style>
    <style>
        /* 添加状态标签样式 */
        .user-status-tag {
            margin-right: 2px;
        }
        
        /* 不同状态的颜色 */
        .status-not-looking {
            color: #9e9e9e;
        }
        
        .status-internship {
            color: #4caf50;
        }
        
        .status-fulltime {
            color: #2196f3;
        }
        
        .status-searching {
            color: #ff9800;
        }
        
        .status-employed {
            color: #673ab7;
        }
        
        .status-private {
            color: #9e9e9e;
        }
        
        /* 在模态框选项中也应用对应颜色 */
        .status-option[data-status="在校-暂不考虑"] i {
            color: #9e9e9e;
        }
        
        .status-option[data-status="在校-寻找实习"] i {
            color: #4caf50;
        }
        
        .status-option[data-status="在校-寻找全职"] i {
            color: #2196f3;
        }
        
        .status-option[data-status="离校-正在找工作"] i {
            color: #ff9800;
        }
        
        .status-option[data-status="已找到工作"] i {
            color: #673ab7;
        }
        
        .status-option[data-status="保密"] i {
            color: #9e9e9e;
        }
    </style>
</head>
<body>
    <div class="app-container profile-page">
        <!-- 头部个人信息区 -->
        <header class="profile-header-new">
            <div class="user-info-top">
                <div class="user-details-main">
                    <h1 class="user-name">张同学</h1>
                    <p class="user-status">在校-寻找实习 <i class="bi bi-pencil-square"></i></p>
                </div>
                <div class="avatar-container-new">
                    <img src="../img/user-avatar.jpg" alt="用户头像" class="avatar-new" data-category="avatar">
                    <div class="edit-avatar-new">
                         <i class="bi bi-camera"></i>
                    </div>
                </div>
            </div>
            <div class="profile-actions-icons">
                 <button class="action-icon-btn" id="scanBtn" aria-label="扫一扫">
                     <i class="bi bi-qr-code-scan"></i>
                 </button>
                 <button class="action-icon-btn" id="settingsBtn" aria-label="设置">
                     <i class="bi bi-gear"></i>
                 </button>
            </div>
        </header>

        <!-- 数据概览 -->
        <section class="data-overview-new">
            <a href="appointments.html" class="data-item" id="appointments">
                <h3>15</h3>
                <p>陪跑预约</p>
            </a>
            <a href="resume-applications.html" class="data-item" id="applications">
                <h3>28</h3>
                <p>简历投递</p>
            </a>
            <a href="favorites.html" class="data-item" id="favorites">
                <h3>8</h3>
                <p>收藏</p>
            </a>
            <a href="my-resumes.html" class="data-item" id="interviews">
                <h3>2</h3>
                <p>我的简历</p>
            </a>
        </section>

        <!-- 主内容区 -->
        <main class="main-content-profile">

            <!-- 核心功能区 (类BOSS直聘) -->
            <!-- <section class="module core-functions"> ... </section> --> <!-- 移除核心功能区，内容已合并到下方 -->

            <!-- 我的经纪人 -->
            <section class="module agent-section">
                <h2 class="module-title">我的经纪人</h2>
                <div class="agent-list">
                    <!-- 经纪人卡片1 -->
                    <div class="agent-card">
                        <div class="agent-avatar-container">
                            <img src="../img/agent-1.jpg" alt="经纪人头像" class="agent-avatar">
                            <div class="agent-status online"></div>
                        </div>
                        <div class="agent-info">
                            <div class="agent-name-wrapper">
                                <h3 class="agent-name">王经理</h3>
                                <span class="agent-badge verified"><i class="bi bi-patch-check-fill"></i></span>
                                <span class="match-rate">匹配度 98%</span>
                            </div>
                            <p class="agent-title">资深互联网招聘顾问 · 5年经验</p>
                            <p class="agent-desc">擅长大厂内推，简历深度优化，面试辅导</p>
                            <div class="agent-stats">
                                <div class="agent-stat-item">
                                    <i class="bi bi-people-fill"></i>
                                    <span>已服务 128 人</span>
                                </div>
                                <div class="agent-stat-item">
                                    <i class="bi bi-star-fill"></i>
                                    <span>满意度 4.9</span>
                                </div>
                            </div>
                            <div class="agent-tags">
                                <span class="agent-tag">互联网</span>
                                <span class="agent-tag">校招</span>
                                <span class="agent-tag">技术岗</span>
                                <span class="agent-tag hot-tag">高回复率</span>
                            </div>
                        </div>
                        <div class="agent-actions">
                            <div class="action-status">今日可约</div>
                            <button class="agent-action-btn message-btn">
                                <i class="bi bi-chat-dots-fill"></i>
                                <span>咨询</span>
                            </button>
                        </div>
                    </div>
                    
                    <!-- 查看更多按钮 -->
                    <a href="agents.html" class="view-all-agents">
                        <span>查看全部经纪人</span>
                        <i class="bi bi-arrow-right"></i>
                    </a>
                </div>
            </section>

            <!-- 我的服务 -->
            <section class="module service-section">
                <h2 class="module-title">我的服务与工具</h2> <!-- 修改标题 -->
                <div class="service-grid"> 
                    <a href="history.html" class="service-item">
                        <div class="service-icon-wrapper history-bg">
                            <i class="bi bi-clock-history list-icon history-icon"></i>
                        </div>
                        <span>浏览足迹</span>
                    </a>
                    <a href="feedback.html" class="service-item">
                        <div class="service-icon-wrapper feedback-bg">
                            <i class="bi bi-pencil-square list-icon feedback-icon"></i>
                        </div>
                        <span>意见反馈</span>
                    </a>
                    <a href="contact.html" class="service-item">
                         <div class="service-icon-wrapper contact-bg">
                             <i class="bi bi-telephone list-icon contact-icon"></i>
                         </div>
                        <span>联系客服</span>
                    </a>
                </div>
            </section>
            
            <!-- 帮助与反馈 -->
            <!-- <section class="module help-section"> ... </section> --> <!-- 移除整个帮助与反馈模块 -->
            
            <!-- 原有模块 (暂时注释掉或后续整合) -->
            <!-- 
            <section class="module career-assessment"> ... </section>
            <section class="module resume-center"> ... </section>
            <section class="module job-progress"> ... </section>
            <section class="module registration-list"> ... </section>
             -->

        </main>

        <!-- 底部导航栏 - 放回app-container内 -->
        <footer class="tab-bar">
            <a href="../index.html" class="tab-item">
                <i class="bi bi-house-door"></i>
                <span>首页</span>
            </a>
            <a href="discover.html" class="tab-item">
                <i class="bi bi-compass"></i>
                <span>发现</span>
            </a>
            <a href="agents.html" class="tab-item">
                <i class="bi bi-person-rolodex"></i>
                <span>经纪人</span>
            </a>
            <a href="profile.html" class="tab-item active">
                <i class="bi bi-person-fill"></i>
                <span>我的</span>
            </a>
        </footer>
    </div>
    
    <!-- 移除外部的底部导航栏 -->

    <script src="../js/profile.js"></script>
    <script src="../js/nav.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 添加滚动时隐藏/显示底部导航栏功能
            let lastScrollTop = 0;
            let scrollTimer;
            const tabBar = document.querySelector('.tab-bar');
            const scrollThreshold = 20; // 滚动阈值，超过此值才触发隐藏/显示
            
            function handleScroll() {
                const currentScrollTop = window.pageYOffset || document.documentElement.scrollTop;
                
                // 判断滚动方向和距离
                if (Math.abs(lastScrollTop - currentScrollTop) > scrollThreshold) {
                    // 向下滚动，隐藏导航栏
                    if (currentScrollTop > lastScrollTop && currentScrollTop > 100) {
                        tabBar.classList.add('tab-bar-hidden');
                    } 
                    // 向上滚动，显示导航栏
                    else if (currentScrollTop < lastScrollTop) {
                        tabBar.classList.remove('tab-bar-hidden');
                    }
                    lastScrollTop = currentScrollTop;
                }
                
                // 滚动停止后显示导航栏
                clearTimeout(scrollTimer);
                scrollTimer = setTimeout(function() {
                    tabBar.classList.remove('tab-bar-hidden');
                }, 1000);
            }
            
            // 添加滚动事件监听
            window.addEventListener('scroll', handleScroll);
            
            // Simple navigation for footer
            document.querySelectorAll('.tab-bar .tab-item').forEach(tab => {
                tab.addEventListener('click', function(e) {
                    // Basic navigation, assumes files are in correct relative paths
                    // e.preventDefault(); // Prevent default if using JS routing
                    // window.location.href = this.getAttribute('href'); 
                });
            });
            
            // 经纪人卡片交互
            const agentCards = document.querySelectorAll('.agent-card');
            const messageButtons = document.querySelectorAll('.agent-action-btn.message-btn');
            
            // 点击卡片效果
            agentCards.forEach(card => {
                card.addEventListener('click', function(e) {
                    // 如果点击的是按钮，则不触发卡片效果
                    if (e.target.closest('.agent-action-btn')) {
                        return;
                    }
                    
                    // 添加活跃状态，实现点击反馈
                    this.classList.add('agent-card-active');
                    setTimeout(() => {
                        this.classList.remove('agent-card-active');
                    }, 200);
                    
                    // 可以跳转到详情页
                    // window.location.href = 'agent-detail.html?id=' + this.dataset.agentId;
                });
            });
            
            // 咨询按钮点击
            messageButtons.forEach(btn => {
                btn.addEventListener('click', function(e) {
                    e.stopPropagation(); // 阻止冒泡到卡片
                    
                    // 添加点击动效
                    this.classList.add('btn-clicked');
                    setTimeout(() => {
                        this.classList.remove('btn-clicked');
                    }, 200);
                    
                    // 简单的反馈提示（实际可以跳转到聊天页面）
                    const agentName = this.closest('.agent-card').querySelector('.agent-name').textContent;
                    showToast(`即将与${agentName}开始对话`);
                    
                    // 实际项目中可以跳转到聊天页面
                    // window.location.href = 'chat.html?agent=' + agentName;
                });
            });
            
            // 简单的提示功能
            function showToast(message) {
                // 检查是否已存在toast元素
                let toast = document.querySelector('.toast-message');
                if (!toast) {
                    toast = document.createElement('div');
                    toast.className = 'toast-message';
                    document.body.appendChild(toast);
                }
                
                // 设置消息并显示
                toast.textContent = message;
                toast.classList.add('show-toast');
                
                // 2秒后隐藏
                setTimeout(() => {
                    toast.classList.remove('show-toast');
                }, 2000);
            }
            
            // 求职状态编辑功能
            const userStatusElement = document.querySelector('.user-status');
            const statusModal = document.getElementById('statusModalOverlay');
            const closeStatusBtn = document.getElementById('closeStatusModalBtn');
            const cancelStatusBtn = document.getElementById('cancelStatusBtn');
            const confirmStatusBtn = document.getElementById('confirmStatusBtn');
            const statusOptions = document.querySelectorAll('.status-option');
            
            // 当前选中的状态 - 获取初始值
            let selectedStatus = userStatusElement.textContent.trim().replace(/\s*<i.*$/g, '').trim();
            
            // 打开状态编辑模态框
            userStatusElement.addEventListener('click', function() {
                // 显示模态框
                statusModal.style.display = 'flex';
                setTimeout(() => {
                    statusModal.classList.add('visible');
                }, 10);
                
                // 获取当前状态文本
                const currentStatus = userStatusElement.textContent.trim().replace(/\s*<i.*$/g, '').trim();
                
                // 默认选中当前状态选项
                statusOptions.forEach(option => {
                    if (option.dataset.status === currentStatus) {
                        option.classList.add('selected');
                        selectedStatus = currentStatus;
                    } else {
                        option.classList.remove('selected');
                    }
                });
            });
            
            // 关闭模态框的方法
            function closeStatusModal() {
                statusModal.classList.remove('visible');
                setTimeout(() => {
                    statusModal.style.display = 'none';
                }, 300);
            }
            
            // 关闭按钮
            closeStatusBtn.addEventListener('click', closeStatusModal);
            
            // 取消按钮
            cancelStatusBtn.addEventListener('click', closeStatusModal);
            
            // 点击选项时更新选中状态
            statusOptions.forEach(option => {
                option.addEventListener('click', function() {
                    // 移除其他选项的选中状态
                    statusOptions.forEach(o => o.classList.remove('selected'));
                    
                    // 添加当前选项的选中状态
                    this.classList.add('selected');
                    
                    // 更新选中的状态
                    selectedStatus = this.dataset.status;
                });
            });
            
            // 确认按钮
            confirmStatusBtn.addEventListener('click', function() {
                if (selectedStatus) {
                    // 更新UI显示和样式
                    updateStatusStyle(selectedStatus, userStatusElement);
                    
                    // 显示成功提示
                    showToast('求职状态已更新');
                    
                    // 这里可以添加API调用，将状态保存到服务器
                    // saveUserStatus(selectedStatus);
                    
                    // 关闭模态框
                    closeStatusModal();
                } else {
                    showToast('请选择一个状态');
                }
            });
            
            // 点击模态框背景关闭
            statusModal.addEventListener('click', function(e) {
                if (e.target === this) {
                    closeStatusModal();
                }
            });
            
            // Initialize profile specific JS
            if (typeof initProfilePage === 'function') {
                initProfilePage();
            }

            // 添加一些进入动画，提高用户体验
            setTimeout(() => {
                const header = document.querySelector('.profile-header-new');
                const dataOverview = document.querySelector('.data-overview-new');
                const modules = document.querySelectorAll('.module');
                
                header.style.opacity = '1';
                header.style.transform = 'translateY(0)';
                
                dataOverview.style.opacity = '1';
                dataOverview.style.transform = 'translateY(0)';
                
                modules.forEach((module, index) => {
                    setTimeout(() => {
                        module.style.opacity = '1';
                        module.style.transform = 'translateY(0)';
                    }, 300 + (index * 100));
                });
            }, 100);
        });
    </script>

    <!-- Toast消息样式 -->
    <style>
        .toast-message {
            position: fixed;
            bottom: 80px; /* 位于底部导航栏上方 */
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 2000;
            pointer-events: none; /* 防止点击 */
            max-width: 80%;
            text-align: center;
        }
        
        .show-toast {
            opacity: 1;
        }
        
        .agent-card-active {
            background-color: #f9f9f9;
        }
        
        .btn-clicked {
            transform: scale(0.95);
        }
    </style>

    <!-- 新增：求职状态编辑模态框 -->
    <div class="modal-overlay" id="statusModalOverlay" style="display: none;">
        <div class="modal-content status-modal">
            <div class="modal-header">
                <h2>编辑求职状态</h2>
                <button class="close-btn" id="closeStatusModalBtn">&times;</button>
            </div>
            <div class="modal-body">
                <p>请选择您当前的求职状态：</p>
                <div class="status-options">
                    <div class="status-option" data-status="在校-暂不考虑">
                         <i class="bi bi-mortarboard"></i> 在校-暂不考虑
                    </div>
                    <div class="status-option selected" data-status="在校-寻找实习">
                         <i class="bi bi-briefcase"></i> 在校-寻找实习
                    </div>
                    <div class="status-option" data-status="在校-寻找全职">
                         <i class="bi bi-building"></i> 在校-寻找全职
                    </div>
                    <div class="status-option" data-status="离校-正在找工作">
                         <i class="bi bi-search"></i> 离校-正在找工作
                    </div>
                     <div class="status-option" data-status="已找到工作">
                         <i class="bi bi-check-circle"></i> 已找到工作
                    </div>
                     <div class="status-option" data-status="保密">
                         <i class="bi bi-eye-slash"></i> 保密
                    </div>
                </div>
            </div>
            <div class="modal-actions">
                <button class="btn btn-secondary" id="cancelStatusBtn">取消</button>
                <button class="btn btn-primary" id="confirmStatusBtn">确定</button>
            </div>
        </div>
    </div>

    <script>
        // 为状态标签添加图标和颜色
        function updateStatusStyle(status, element) {
            // 删除所有可能的类
            element.classList.remove(
                'status-not-looking', 
                'status-internship', 
                'status-fulltime', 
                'status-searching', 
                'status-employed', 
                'status-private'
            );
            
            // 移除旧图标
            const existingIcon = element.querySelector('.user-status-tag');
            if (existingIcon) {
                existingIcon.remove();
            }
            
            // 添加新样式和图标
            let statusClass = '';
            let statusIcon = '';
            
            switch (status) {
                case '在校-暂不考虑':
                    statusClass = 'status-not-looking';
                    statusIcon = '<i class="bi bi-mortarboard user-status-tag"></i>';
                    break;
                case '在校-寻找实习':
                    statusClass = 'status-internship';
                    statusIcon = '<i class="bi bi-briefcase user-status-tag"></i>';
                    break;
                case '在校-寻找全职':
                    statusClass = 'status-fulltime';
                    statusIcon = '<i class="bi bi-building user-status-tag"></i>';
                    break;
                case '离校-正在找工作':
                    statusClass = 'status-searching';
                    statusIcon = '<i class="bi bi-search user-status-tag"></i>';
                    break;
                case '已找到工作':
                    statusClass = 'status-employed';
                    statusIcon = '<i class="bi bi-check-circle user-status-tag"></i>';
                    break;
                case '保密':
                    statusClass = 'status-private';
                    statusIcon = '<i class="bi bi-eye-slash user-status-tag"></i>';
                    break;
            }
            
            // 添加新的类和图标
            element.classList.add(statusClass);
            element.innerHTML = statusIcon + status + ' <i class="bi bi-pencil-square"></i>';
        }
        
        // 初始化状态样式
        document.addEventListener('DOMContentLoaded', function() {
            const userStatusElement = document.querySelector('.user-status');
            const currentStatus = userStatusElement.textContent.trim().replace(/\s*<i.*$/g, '').trim();
            updateStatusStyle(currentStatus, userStatusElement);
        });
    </script>

</body>
</html> 